import request from '@/utils/request'

// 查询在线商品测评列表
export function listSellerStoreProductEvaluation(query) {
  return request({
    url: '/order/gather/sellerStoreProductEvaluation/list',
    method: 'get',
    params: query
  })
}

// 查询在线商品测评详细
export function getSellerStoreProductEvaluation(id) {
  return request({
    url: '/system/sellerStoreProductEvaluation/' + id,
    method: 'get'
  })
}

// 新增在线商品测评
export function addSellerStoreProductEvaluation(data) {
  return request({
    url: '/system/sellerStoreProductEvaluation',
    method: 'post',
    data: data
  })
}

// 修改在线商品测评
export function updateSellerStoreProductEvaluation(data) {
  return request({
    url: '/system/sellerStoreProductEvaluation',
    method: 'put',
    data: data
  })
}

// 删除在线商品测评
export function delSellerStoreProductEvaluation(id) {
  return request({
    url: '/system/sellerStoreProductEvaluation/' + id,
    method: 'delete'
  })
}


// 填写订单号
export function submitOrderNumber(data) {
  return request({
    url: '/gather/sellerStoreProductEvaluation/submitOrderNumber',
    method: 'get',
    params: data
  })
}

// 填写运单号
export function submitIntlTrackingNo(data) {
  return request({
    url: '/gather/sellerStoreProductEvaluation/submitIntlTrackingNo',
    method: 'get',
    params: data
  })
}

// 提交总费用
export function submitTotalAmount(query) {
  return request({
    url: '/gather/sellerStoreProductEvaluation/submitTotalAmount',
    method: 'get',
    params: query
  })
}

// 获取测评订单数量
export function getEvaluationValue(query) {
  return request({
    url: '/gather/sellerStoreProductEvaluation/redReminderForEvaluationOrder',
    method: 'get',
    params: query
  })
}

// 获取测评订单数量
export function queryEvaluationLog(query) {
  return request({
    url: '/wallet/seller/sellerStoreWalletLog/queryEvaluationLog',
    method: 'get',
    params: query
  })
}

// 获取测评订单数量
export function updateEvaluationAmount(query) {
  return request({
    url: '/seller/sellerStoreWalletExpend/updateEvaluationAmount',
    method: 'get',
    params: query
  })
}

// 获取卖家全称列表
export function selectStoreList(query) {
  return request({
    url: '/order/gather/sellerStoreProductEvaluation/selectStoreList',
    method: 'get',
    params: query
  })
}

// 获取卖家全称列表
export function isEvaluationOrder(query) {
  return request({
    url: '/purchase/sellerOrder/isEvaluationOrder',
    method: 'get',
    params: query
  })
}

// 作废测评订单
export function InvalidEvaluationOrder(query) {
  return request({
    url: '/gather/sellerStoreProductEvaluation/InvalidEvaluationOrder',
    method: 'get',
    params: query
  })
}

// 标记测评单已线下声明发货
export function evaluationOrderShipped(query) {
  return request({
    url: '/gather/sellerStoreProductEvaluation/evaluationOrderShipped',
    method: 'get',
    params: query
  })
}

// 获取卖家店铺列表
export function getSellerSignerFullname(query) {
  return request({
    url: '/shop/seller/sellerStoreEmpower/getSellerSignerFullname',
    method: 'get',
    params: query
  })
}


// 获取卖家账号列表
export function addEvaluationOrder(query) {
  return request({
    url: '/order/gather/sellerStoreProductEvaluation/addEvaluationOrder',
    method: 'post',
    data: query
  })
}


// 获取订单金额列表
export function getEvaluationOrderList(query) {
  return request({
    url: '/purchase/sellerOrder/getEvaluationOrderList',
    method: 'get',
    params: query
  })
}

// 获取店铺列表
export function getSellerStoreFullName(query) {
  return request({
    url: '/purchase/sellerOrder/getSellerSignerFullname',
    method: 'get',
    params: query
  })
}
